package com.xy.annotaion.handler.importer;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author Dell
 */
public class TestImportBeanDefinitionRegistrarImpl implements ImportBeanDefinitionRegistrar, LogService {

    @Override
//    @TestLog//not OK
    public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
        log(importingClassMetadata);
        log(registry);
    }
}
